package com.hzhc.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author dongcy
 * @date 2024/4/10 9:33
 * @description SysYzsRole
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_yzs_role")
public class SysYzsRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 角色名称
     */
    private String name;

    /**
     * 角色code
     */
    private String rolecode;

    /**
     * 备注
     */
    private String remark;

    /**
     * 父Id
     */
    private Long pid;

    /**
     * 状态（1启用，0不启用）
     */
    private Boolean status;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 排序号
     */
    private Integer seq;

}
